package com.cooper.vo;

import java.util.List;

import org.apache.commons.lang.StringUtils;

import com.cooper.entity.AdviceReplyEntity;
import com.google.common.base.Splitter;
import com.google.common.collect.Lists;

public class AdviceSubjectVo extends BaseVo {

	private static final long serialVersionUID = 6679066126192642982L;

	private String creatorHeader;
	
	private String userType;
	private String subjectType;
	private String title;
	private String content;
	private String attachments;
	
	private List<String> attachmentList = Lists.newArrayList();
	
	private List<AdviceReplyEntity> replyList = Lists.newArrayList();

	public String getCreatorHeader() {
		return creatorHeader;
	}

	public void setCreatorHeader(String creatorHeader) {
		this.creatorHeader = creatorHeader;
	}

	public String getUserType() {
		return userType;
	}

	public void setUserType(String userType) {
		this.userType = userType;
	}

	public String getSubjectType() {
		return subjectType;
	}

	public void setSubjectType(String subjectType) {
		this.subjectType = subjectType;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getAttachments() {
		return attachments;
	}

	public void setAttachments(String attachments) {
		this.attachments = attachments;
		if(StringUtils.isNotBlank(this.attachments)){
			this.attachmentList = Splitter.on(",").splitToList(this.attachments);
		}
	}

	public List<String> getAttachmentList() {
		return attachmentList;
	}

	public void setAttachmentList(List<String> attachmentList) {
		this.attachmentList = attachmentList;
	}

	public List<AdviceReplyEntity> getReplyList() {
		return replyList;
	}

	public void setReplyList(List<AdviceReplyEntity> replyList) {
		this.replyList = replyList;
	}
	
}
